
<div class="form-group">
    <label for="goodsName">商品名称</label>
    <input type="hidden" class="goods-id" name="goods_id" value="<?php echo isset($goods_row)?$goods_row['goods_id']:0;?>">
    <input type="text" class="form-control" id="goodsName" name="Goods[name]" value="{{isset($goods_row)?$goods_row['goods_name']:''}}" placeholder="请输入商品名称">
</div>
<div class="form-group">
    <label>选择商品分类</label>
    <select class="form-control" name="Goods['cat_id']">
        @foreach($cat_list as $cat)
        <option value="{{$cat['id']}}" {{$cat['level']==0?'disabled':''}} {{isset($goods_row)?($cat['id'] ==$goods_row['cat_id'] ? 'selected':''):''}}>{{$cat['html'].$cat['cate_name']}}</option>
        @endforeach
    </select>
</div>